//
//  FileManager.m
//  MobileVLCKitDemo
//
//  Created by 金色榜样研发组 on 2019/5/29.
//  Copyright © 2019 Golden Bangyang (beijing) Cul Ture Media Investment Co. All rights reserved.
//

#import "FileManager.h"

@implementation FileManager
#pragma mark - 获取文件大小
+(FileSizeModel *)getFileSize:(NSString *)path
{
    NSFileManager *fileManager = [NSFileManager defaultManager];
    unsigned long long fileSize = 0;
    if ([fileManager fileExistsAtPath:path]) {
        fileSize = [[fileManager attributesOfItemAtPath:path error:nil] fileSize];
    }
    FileSizeModel *model = [SizeManager convertWithSize:(fileSize * 1.0)];
    return model;
}

@end
